package com.javatip.project.detection.detectionTrainMission.mapper;

import com.javatip.project.detection.detectionTrainMission.domain.DetectionTrainMission;
import java.util.List;	

/**
 * 目标检测训练任务 数据层
 * 
 * @author 袁伟
 * @date 2024-09-27
 */
public interface DetectionTrainMissionMapper
{
	/**
	 * 查询目标检测训练任务信息
	 *
	 * @param id 目标检测训练任务ID
	 * @return 目标检测训练任务信息
	 */
	public DetectionTrainMission selectDetectionTrainMissionById(Integer id);

	/**
	 * 查询目标检测训练任务列表
	 *
	 * @param detectionTrainMission 目标检测训练任务信息
	 * @return 目标检测训练任务集合
	 */
	public List<DetectionTrainMission> selectDetectionTrainMissionList(DetectionTrainMission detectionTrainMission);

	/**
	 * 新增目标检测训练任务
	 *
	 * @param detectionTrainMission 目标检测训练任务信息
	 * @return 结果
	 */
	public int insertDetectionTrainMission(DetectionTrainMission detectionTrainMission);

	/**
	 * 修改目标检测训练任务
	 *
	 * @param detectionTrainMission 目标检测训练任务信息
	 * @return 结果
	 */
	public int updateDetectionTrainMission(DetectionTrainMission detectionTrainMission);

	/**
	 * 删除目标检测训练任务
	 *
	 * @param id 目标检测训练任务ID
	 * @return 结果
	 */
	public int deleteDetectionTrainMissionById(Integer id);

	/**
	 * 批量删除目标检测训练任务
	 *
	 * @param ids 需要删除的数据ID
	 * @return 结果
	 */
	public int deleteDetectionTrainMissionByIds(String[] ids);

	public List<DetectionTrainMission> selectSelfDetectionTrainMissionList(int userId, DetectionTrainMission detectionTrainMission);

	public List<DetectionTrainMission> selectPublicAndSelfDetectionTrainMissionList(int userId, DetectionTrainMission detectionTrainMission);
}